import type { App } from 'vue';
import svgIcon from './svgIcon/index.vue';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import * as Hq from './hq/index';

export const installComponents = (app: App<Element>) => {
  app.component('svg-icon', svgIcon);

  //加载element ui全部icon组件
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }

  //加载hq相关组件
  for (const [key, component] of Object.entries(Hq)) {
    app.component(key, component);
  }
};
